<!DOCTYPE html>
<html>
	<head>
	<meta name="renderer" content="webkit" />
	<meta http-equiv="X-UA-COMPATIBLE" content="IE=edge,chrome=1"/>
	{if $frist_menu.module_name=='首页'}
	<title>{$title_name} - 商家管理</title>
	{else /}
		<title>{$title_name} - {$frist_menu.module_name}管理</title>
	{/if}
		<link rel="shortcut  icon" type="image/x-icon" href="ADMIN_IMG/admin_icon.ico" media="screen"/>
		<link rel="stylesheet" type="text/css" href="__STATIC__/blue/bootstrap/css/bootstrap.css" />
		<link rel="stylesheet" type="text/css" href="__STATIC__/blue/css/ns_blue_common.css" />
		<link rel="stylesheet" type="text/css" href="__STATIC__/font-awesome/css/font-awesome.min.css" />
		<link rel="stylesheet" type="text/css" href="__STATIC__/simple-switch/css/simple.switch.three.css" />
		<style>
		.Switch_FlatRadius.On span.switch-open{background-color: #0072D2;border-color: #0072D2;}
		</style>
		<script src="__STATIC__/js/jquery-1.8.1.min.js"></script>
		<script src="__STATIC__/blue/bootstrap/js/bootstrap.js"></script>
		<script src="__STATIC__/bootstrap/js/bootstrapSwitch.js"></script>
		<script src="__STATIC__/simple-switch/js/simple.switch.js"></script>
		<script src="__STATIC__/js/jquery.unobtrusive-ajax.min.js"></script>
		<script src="__STATIC__/js/common.js"></script>
		<script src="__STATIC__/js/seller.js"></script>
		<script src="__STATIC__/js/load_task.js"></script>
		<script src="__STATIC__/js/load_bottom.js" type="text/javascript"></script>
		<script src="ADMIN_JS/jquery-ui.min.js"></script>
		<script src="ADMIN_JS/ns_tool.js"></script>
		<link rel="stylesheet" type="text/css" href="__STATIC__/blue/css/ns_table_style.css">
		{include file="adminblue/controlCommonVariable" }
		{block name="resources"/}{/block}
	</head>
<body>
{include file="admin/urlModel"}
<header class="ns-base-header">
	<div class="ns-logo" onclick="location.href='{:__URL('ADMIN_MAIN')}';">
		<img src="__STATIC__/blue/img/top_logo.png"/>
	</div>
	<div class="ns-search">
		<span class="js-nav">导航管理</span>
		<div class="ns-navigation-management">
			<div class="ns-navigation-title">
				<h4>导航管理</h4>
				<span>x</span>
			</div>
			<div style="height:40px;"></div>
			{foreach name="nav_list" item="nav"}
			<dl>
				<dt>{$nav.data.module_name}</dt>
				{foreach name="nav['sub_menu']" item="nav_sub"}
				<dd onclick="location.href='{:__URL('ADMIN_MAIN/'.$nav_sub['url'])}';">{$nav_sub.module_name}</dd>
				{/foreach}
			</dl>
			{/foreach}
		</div>
		<i class="fa fa-sort-desc"></i>
		<i class="ns-vertical-bar"></i>
		<div class="ns-search-block">
			<input type="text" id="search_goods" placeholder="商品搜索" />
			<i class="ns-icon-base i-search" title="商品搜索" onclick="search()"></i>
		</div>
	</div>
	<nav>
		<ul>
			{foreach name="headlist" item="per"}
			{if condition="strtoupper($per['module_id']) eq $headid"}
			<li class="selected" onclick="location.href='{:__URL('ADMIN_MAIN/'.$per['url'])}';">
				<span>{$per.module_name}</span>
				{if condition="$per['module_id'] eq 10000"}
					<span class="is-upgrade"></span>
				{/if}
			</li>
			
			{else/}
			<li onclick="location.href='{:__URL('ADMIN_MAIN/'.$per['url'])}';">
				<span>{$per.module_name}</span>
				{if condition="$per['module_id'] eq 10000"}
					<span class="is-upgrade"></span>
				{/if}
			</li>
			{/if}
			{/foreach}
		</ul>
	</nav>
	<div class="ns-base-tool">
		<div class="ns-version-info">
			<span>{$niu_version}</span>
		</div>
		<i class="ns-vertical-bar"></i>
		<div class="ns-home" title="返回首页" onclick="javascript:window.open('SHOP_MAIN','_blank');">
			<img src="__STATIC__/blue/img/home.png" />
		</div>
		<i class="ns-vertical-bar"></i>
		{foreach name="headlist" item="per"}
		{if condition="$per['module_id'] eq 10000"}
		<div class="ns-upgrade" title="发现新的升级" onclick="location.href='{:__URL('ADMIN_MAIN/'.$per['url'])}';">
			<img src="__STATIC__/blue/img/upgrade.png" />
			<span class="is-upgrade"></span>
		</div>
		<i class="ns-vertical-bar" style="border-width: 1px;"></i>
		{/if}
		{/foreach}
		<div class="ns-clear" title="清除缓存" onclick="delcache()">
			<img src="__STATIC__/blue/img/clear.png" />
		</div>
	</div>
</header>
<article class="ns-base-article">
	<aside class="ns-base-aside">
		<header>
			<article class="ns-base-user">
				<div class="ns-head-portrait">
					{if condition="$user_headimg neq ''"}
					<img src="__ROOT__/{$user_headimg}"/>
					{else /}
					<img src="__STATIC__/blue/img/head_portrait_default.png"/>
					{/if}
				</div>
				<div class="ns-base-info">
					<span>欢迎您：{$user_name}</span>
					<span>角色：{$group_name}</span>
				</div>
			</article>
			<a href="#edit-password" data-toggle="modal" title="修改密码">修改密码</a>
			<a href="{:__URL('ADMIN_MAIN/login/logout')}" title="安全退出">安全退出</a>
		</header>
		<nav>
			<ul>
				{foreach name="leftlist" item="leftitem"}
				{if condition="strtoupper($leftitem['module_id']) eq $second_menu_id"}
				<li class="selected" onclick="location.href='{:__URL('ADMIN_MAIN/'.$leftitem['url'])}';" title="{$leftitem.module_name}">{$leftitem.module_name}</li>
				{else/}
				<li onclick="location.href='{:__URL('ADMIN_MAIN/'.$leftitem['url'])}';" title="{$leftitem.module_name}">{$leftitem.module_name}</li>
				{/if}
				{/foreach}
			</ul>
		</nav>
		<div style="height:50px;"></div>
		<div id="bottom_copyright">
			<footer>
				<img src="" id="copyright_logo"/>
				<p>
					<span id="copyright_meta"></span>
					<br/>
					<span id="copyright_companyname"></span>
					<br/>
					<span id="copyright_desc"></span>
				</p>
			</footer>
		</div>
	</aside>
	<section class="ns-base-section">
		<div class="ns-notice">
			<nav>
				<ul>
					<li>网站名称:<span>{$title_name}</span></li>
					<li>最后登录时间：<span>{$user_info['last_login_time'] | getTimeStampTurnTime}</span></li>
					<li>最后登录IP：<span>{$user_info['last_login_ip']}</span></li>
				</ul>
			</nav>
			<div class="ns-service-telephone">
				<img src="__STATIC__/blue/img/logo.png"/>
				<span>提供技术支持服务电话：400-886-7993</span>
			</div>
		</div>
		
		<!-- 操作提示 -->
		{block name="warm_prompt"}
		<div class="ns-warm-prompt" {if condition="$warm_prompt_is_show == 'hidden'"}style="display:none;"{/if}>
			<div class="alert alert-info">
				<button type="button" class="close">&times;</button>
				<h4>
					<i class="fa fa-bell"></i>
					<span>操作提示</span>
				</h4>
				<div style="font-size:12px;text-indent:18px;">
					{block name="alert_info"}
						{foreach name="leftlist" item="leftitem"}
						{if condition="strtoupper($leftitem['module_id']) eq $second_menu_id"}
						{$leftitem.module_name}
						{/if}
						{/foreach}
					{/block}
				</div>
			</div>
		</div>
		{/block}
		<div style="position:relative;margin:10px 0;">
			<!-- 三级导航菜单 -->
			{block name="thirdmenu"}
			<nav class="ns-third-menu">
				<ul>
				{foreach name="child_menu_list" item="child_menu" key="k" }
				{eq name="child_menu['active']" value="1"}
					<li class="selected" onclick="location.href='{:__URL('ADMIN_MAIN/'.$child_menu['url'])}';">{$child_menu.menu_name}</li>
				{else/}
					<li onclick="location.href='{:__URL('ADMIN_MAIN/'.$child_menu['url'])}';">{$child_menu.menu_name}</li>
				{/eq}
				{/foreach}
				</ul>
			</nav>
			{/block}
			
			<div class="right-side-operation">
				<ul>
					{block name="right_tab"}{/block}
					{block name="right_tab_tip"}
					<li {if condition="$warm_prompt_is_show == 'show'"}style="display:none;"{/if}><a class="js-open-warmp-prompt"><i class="fa fa-bell"></i>提示</a></li>
					{/block}
				</ul>
			</div>
		</div>
		<div class="ns-main">
			{block name="main"}{/block}
			{include file="adminblue/pageCommon"}
		</div>
		
	</section>
</article>
	
<!-- 公共的操作提示弹出框 common-success：成功，common-warning：警告，common-error：错误，-->
<div class="common-tip-message js-common-tip">
	<div class="inner"></div>
</div>

<!--修改密码弹出框 -->
<div id="edit-password" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="width:562px;">
	<div class="modal-header">
		<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
		<h3>修改密码</h3>
	</div>
	<div class="modal-body">
		<form class="form-horizontal">
			<div class="control-group">
				<label class="control-label" for="pwd0"><span class="color-red">*</span>原密码</label>
				<div class="controls">
					<input type="password" id="pwd0" placeholder="请输入原密码" class="input-common" />
					<span class="help-block"></span>
				</div>
			</div>
			<div class="control-group">
				<label class="control-label" for="pwd1"><span class="color-red">*</span>新密码</label>
				<div class="controls">
					<input type="password" id="pwd1" placeholder="请输入新密码" class="input-common" />
					<span class="help-block"></span>
				</div>
			</div>
			<div class="control-group">
				<label class="control-label" for="pwd2"><span class="color-red">*</span>再次输入密码</label>
				<div class="controls">
					<input type="password" id="pwd2" placeholder="请输入确认密码" class="input-common" />
					<span class="help-block"></span>
				</div>
			</div>
			<div style="text-align: center; height: 20px;" id="show"></div>
		</form>
	</div>
	<div class="modal-footer">
		<button class="btn btn-primary" onclick="submitPassword()" style="display:inline-block;">保存</button>
		<button class="btn" data-dismiss="modal" aria-hidden="true">关闭</button>
	</div>
</div>
{include file="adminblue/openDialog" /}
<script src="ADMIN_JS/ns_common_base.js"></script>
<script src="__STATIC__/blue/js/ns_common_blue.js"></script>
<script>
$(function(){
	//顶部导航管理显示隐藏
	$(".ns-navigation-title>span").click(function(){
		$(".ns-navigation-management").slideUp(400);
	});
	
	$(".js-nav").toggle(function(){
		$(".ns-navigation-management").slideDown(400);
	},function(){
		$(".ns-navigation-management").slideUp(400);
	});
});

</script>
{block name="script"}{/block}
</body>
</html>